package com.dykj.apps.web.sysmanager.service;

import java.util.List;
import java.util.Map;

import com.dykj.apps.web.sysmanager.dto.SysAuthDTO;
import com.dykj.platform.framework.common.paging.Page;
import com.dykj.platform.framework.exception.ApplicationException;

public interface IAuthManagerBS {

	public int saveAuth(SysAuthDTO dto,String[] userListRight,String[] groupListRight) throws ApplicationException;
	public int updateAuth(SysAuthDTO dto,String[] userListRight,String[] groupListRight,String groupid,String type) throws ApplicationException;
	public int delAuth(Long key) throws ApplicationException;
	public SysAuthDTO getOneSysAuth(Long id)throws ApplicationException;
	public List querySysAuth(SysAuthDTO dto,Page page)throws ApplicationException;
	
	/**
	 * 新建时。取得用户列表和机构列表
	 * @param type
	 * @param groupid
	 * @param cauthid
	 * @return
	 * @throws ApplicationException
	 */
	public Map addAuthInit(String type, String groupid, String cauthid) throws ApplicationException;
	
	/**
	 * 修改时，取得用户列表和机构列表
	 * @param authid
	 * @param type
	 * @param groupid
	 * @param cauthid
	 * @return
	 * @throws ApplicationException
	 */
	public Map editAuthInit(String authid,String type,String groupid,String cauthid) throws ApplicationException;
}
